package entidades;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the ocupacionfuncion database table.
 * 
 */
@Entity
@Table(name="ocupacionfuncion")
public class Ocupacionfuncion implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	private int silla;

	//bi-directional many-to-one association to Cliente
    @ManyToOne
	@JoinColumn(name="cliente")
	private Cliente clienteBean;

	//bi-directional many-to-one association to Funcion
    @ManyToOne
	@JoinColumn(name="funcion")
	private Funcion funcionBean;

	//bi-directional many-to-one association to Tipoocupacion
    @ManyToOne
	@JoinColumn(name="tipoOcupacion")
	private Tipoocupacion tipoocupacion;

	//bi-directional many-to-one association to Transaccion
	@OneToMany(mappedBy="ocupacionfuncion", fetch=FetchType.EAGER)
	private List<Transaccion> transaccions;

    public Ocupacionfuncion() {
    }

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getSilla() {
		return this.silla;
	}

	public void setSilla(int silla) {
		this.silla = silla;
	}

	public Cliente getClienteBean() {
		return this.clienteBean;
	}

	public void setClienteBean(Cliente clienteBean) {
		this.clienteBean = clienteBean;
	}
	
	public Funcion getFuncionBean() {
		return this.funcionBean;
	}

	public void setFuncionBean(Funcion funcionBean) {
		this.funcionBean = funcionBean;
	}
	
	public Tipoocupacion getTipoocupacion() {
		return this.tipoocupacion;
	}

	public void setTipoocupacion(Tipoocupacion tipoocupacion) {
		this.tipoocupacion = tipoocupacion;
	}
	
	public List<Transaccion> getTransaccions() {
		return this.transaccions;
	}

	public void setTransaccions(List<Transaccion> transaccions) {
		this.transaccions = transaccions;
	}
	
}